Xceed DataGrid for WPF v7.2 Documentation
MoveItem Method (ContentElementCollection<T>)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > ContentElementCollection<T> Class : MoveItem Method
The index of the item to move.
The index where the item is to be moved.
Moves an item in the collection.
Syntax
'Declaration
 
Protected Overridable Sub MoveItem( _
   ByVal oldIndex As Integer, _
   ByVal newIndex As Integer _
) 
'Usage
 
Dim instance As ContentElementCollection(Of T)
Dim oldIndex As Integer
Dim newIndex As Integer
 
instance.MoveItem(oldIndex, newIndex)
protected virtual void MoveItem( 
   int oldIndex,
   int newIndex
)

Parameters

oldIndex
The index of the item to move.
newIndex
The index where the item is to be moved.
Remarks
This method is called by the Move method. It will execute the move request, and flag the changes by using the PropertyChanged and CollectionChanged events.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ContentElementCollection<T> Class
ContentElementCollection<T> Members